home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 2 / AACD 2.iso / AACD / Magazine / UsingPDF / GhostScript / source / gs5.10 / ifunc.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-11-02  |  2.0 KB  |  49 lines

  1. /* Copyright (C) 1997 Aladdin Enterprises.  All rights reserved.
  2.   
  3.   This file is part of Aladdin Ghostscript.
  4.   
  5.   Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  6.   or distributor accepts any responsibility for the consequences of using it,
  7.   or for whether it serves any particular purpose or works at all, unless he
  8.   or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  9.   License (the "License") for full details.
  10.   
  11.   Every copy of Aladdin Ghostscript must include a copy of the License,
  12.   normally in a plain ASCII text file named PUBLIC.  The License grants you
  13.   the right to copy, modify and redistribute Aladdin Ghostscript, but only
  14.   under certain conditions described in the License.  Among other things, the
  15.   License requires that the copyright notice and this notice be preserved on
  16.   all copies.
  17. */
  18.  
  19. /* ifunc.h */
  20. /* Internal interpreter interfaces for Functions */
  21.  
  22. #ifndef ifunc_INCLUDED
  23. #  define ifunc_INCLUDED
  24.  
  25. /* Define build procedures for the various function types. */
  26. #define build_function_proc(proc)\
  27.   int proc(P4(const_os_ptr op, const gs_function_params_t *params, int depth,\
  28.           gs_function_t **ppfn))
  29. build_function_proc(build_function_undefined);
  30.  
  31. /* Define the table of build procedures, indexed by FunctionType. */
  32. extern build_function_proc((*build_function_procs[5]));
  33.  
  34. /* Build a function structure from a PostScript dictionary. */
  35. int fn_build_sub_function(P3(const ref *op, gs_function_t **ppfn, int depth));
  36. #define fn_build_function(op, ppfn)\
  37.   fn_build_sub_function(op, ppfn, 0)
  38.  
  39. /* Allocate an array of function objects. */
  40. int ialloc_function_array(P2(uint count, gs_function_t ***pFunctions));
  41.  
  42. /* Collect a heap-allocated array of floats. */
  43. /* If the key is missing, set *pparray = 0 and return 0; */
  44. /* otherwise set *pparray and return the number of elements. */
  45. int fn_build_float_array(P5(const ref *op, const char _ds *kstr, bool required,
  46.                 bool even, const float **pparray));
  47.  
  48. #endif                    /* ifunc_INCLUDED */
  49.